import request from '@/utils/request'
import qs from 'qs'

// 查询事件名称树
export const eventNameTreeData = (params) => {
    return new request({
        url: './public_sentiment_three/eventAnalyzeRule/eventNameTreeData',
        method: 'post',
        params: params
    });
}

// 获取一级事件分类
export const getOneEventType = (params) => {
    return new request({
        url: './public_sentiment_three/eventAnalyzeRule/getOneEventType',
        method: 'post',
        params: params
    });
}

// 获取二级事件分类
export const getTwoEventType = (params) => {
    return new request({
        url: './public_sentiment_three/eventAnalyzeRule/getTwoEventType',
        method: 'post',
        params: params
    });
}

// 获取三级事件分类
export const getThreeEventType = (params) => {
    return new request({
        url: './public_sentiment_three/eventAnalyzeRule/getThreeEventType',
        method: 'post',
        params: params
    });
}

//添加事件
export const add = (params) => {
    return new request({
        url: './public_sentiment_three/eventAnalyzeRule/add',
        method: 'post',
        data: params
    });
}

// 查询事件详情
export const detail = (params) => {
    return new request({
        url: './public_sentiment_three/eventAnalyzeRule/detail',
        method: 'post',
        params: params
    });
}

// 删除事件
export const remove = (params) => {
    return new request({
        url: './public_sentiment_three/eventAnalyzeRule/remove',
        method: 'post',
        data: params
    });
}

// 查询事件类型详情
export const getEventTypeDetail = (params) => {
    return new request({
        url: './public_sentiment_three/eventAnalyzeRule/getEventTypeDetail',
        method: 'post',
        params: params
    });
}

// 获取用户对应的角色
export const getRuleId = (params) => {
    return new request({
        url: './public_sentiment_three/eventAnalyzeRule/getRuleId',
        method: 'post',
        params: params
    });
}
